package com.baizhi.appcontroller;

import com.baizhi.AdminLogAnnoation.AdminLogAnnotion;
import com.baizhi.service.CmfzAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * @Author: renpu
 * @Date: 2019/3/8 19:38
 * @Description:
 */
@Controller
@RequestMapping("AppAdmin")
public class AppAdminController {

    @Autowired
    private CmfzAdminService cmfzAdminService;

    @RequestMapping("login")
    @AdminLogAnnotion("登录成功")
    public String login(String userName,String passWord){
        Map map=cmfzAdminService.selectOneT(userName,passWord);
        return "/login";
    }
}
